package crew.blt.handsound.client.services.user;

import java.util.Collection;

import org.gwtwidgets.server.spring.GWTRequestMapping;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import crew.blt.handsound.shared.domain.User;
import crew.gwt.client.domain.OrderedEntitiesResponse;

@RemoteServiceRelativePath("user.rpc")
public interface UserService extends RemoteService{
	
	public User login() throws Exception;
	public Collection<User> getUsers();
	public Boolean deleteUser(String id) throws Exception;
	public Boolean editUser(User u) throws Exception;
	public User getUser(final String userId) throws Exception;
	
	OrderedEntitiesResponse<User> getOrderedEntities(int index, boolean asc,int gridCapacity, int startIndex);
}
